package com.appstore.dao;

import com.appstore.exception.DaoException;

/**
 * IAdministratorrDao define some not implemented method to access administrator
 * data.
 * 
 * @author zhbhun
 * 
 */
public interface IAdministratorrDao {

	/**
	 * find user id by username and password.
	 * 
	 * @param username
	 * @param password
	 * @return
	 * @throws DaoException
	 */
	public int findAdministrator(String username, String password)
	        throws DaoException;

	/**
	 * change password.
	 * 
	 * @param id
	 * @param newPwd
	 * @throws DaoException 
	 */
	public void changePassword(int id, String newPwd) throws DaoException;
}
